package zhongjie;

public class Landlord extends Person {//房东者类，继承Person
    public Landlord(HouseMediator houseMediator) {//关联中介
        super(houseMediator);
    }
    @Override
    public void send(String message) {
        System.out.println("房东发布信息：" + message);
        houseMediator.notice(this, message);//通知购房者
    }
    @Override
    public void getNotice(String message) {
        System.out.println("房东收到消息：" + message);
    }
}